﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tippelde;
using Tippelde.Entities;

namespace Tippelde.Services.Log
{
    public class Logger : ILogger
    {
        public void Log(string userName, string idType, string referredId, string action, string newValue, string oldValue)
        {
            using (var ctx = new TippeldeEntities())
            {
                Entities.Log log = new Entities.Log();
                ctx.Logs.Add(log);
                ctx.SaveChanges();
            }
        }
    }
}
